cmake_minimum_required(VERSION 3.5)
project(can_dbc_loader)

if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()


if (WIN32)
    set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

include_directories(include)

add_library(
  can_dbc_loader SHARED
  src/attribute.cpp
  src/bus_node.cpp
  src/comment.cpp
  src/signal.cpp
  src/message.cpp
  src/database.cpp
)

# install(
#   TARGETS can_dbc_loader
#   ARCHIVE DESTINATION ${CMAKE_SOURCE_DIR}/lib
#   LIBRARY DESTINATION ${CMAKE_SOURCE_DIR}/lib
#   RUNTIME DESTINATION ${CMAKE_SOURCE_DIR}/bin
# )
